package com.example.springframework;

import java.util.Base64;

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");

        String encode = Base64.getEncoder().encodeToString("Hello world!".getBytes());
        System.out.println(encode);
        byte[] bytes = Base64.getDecoder().decode(encode);
        String res = new String(bytes);
        System.out.println(res);

    }
}